package com.ijunfu.spring.genBean._11_factory_bean;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.ConfigurableApplicationContext;

/**
 *
 * @Title  : 
 * @Author : ijunfu <ijunfu@163.com>
 * @Date   : 2023/11/10 13:15
 * @Version: 1.0
 * @Motto  : 世界很大 世界很小
 *
 */
@SpringBootApplication
public class FactoryBeanMain {

    public static void main(String[] args) {
        ConfigurableApplicationContext context = SpringApplication.run(FactoryBeanMain.class);

        boolean existsHelperFactoryBean = context.getBeanFactory().containsBean("helperFactoryBean");
        System.out.println(existsHelperFactoryBean);
    }
}
